package com.moyuwanjia.ui;

import com.moyuwanjia.pojo.User;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author 摸鱼丸加~
 * @create 2022-04-19 11:26
 * 模拟表现层，用于调用业务层
 */
public class Client01_applicationContext {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext("bean.xml");
        User users = (User)classPathXmlApplicationContext.getBean("users3");
        System.out.println(users.toString());
    }
}
